package com.clement.observe;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by Clement on 2017/2/28.
 */
public class MainRunner {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(Config.class);
        ObserverPatternDemo observerPatternDemo = applicationContext.getBean(ObserverPatternDemo.class);
        observerPatternDemo.observe();

    }

}
